<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>int pblIsamSetCompareFunction</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.9">
</HEAD>
 <center>
<H2>Program Base Library Functions</H2>
</center>

<H2>int <A HREF="#DOC.DOCU">pblIsamSetCompareFunction</A></H2><H2>( <!1><A HREF="pblIsamFile_t.html">pblIsamFile_t</A>*  isamfile,<BR>&nbsp;  int index,<BR>&nbsp;  int (* keycompare ) ( void* left,<BR>&nbsp;  size_t llen,   void* right,<BR>&nbsp;  size_t rlen ) )</H2><BLOCKQUOTE> set an application specific compare function for a key of an ISAM file</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>
set an application specific compare function for a key of an ISAM file

<P>parameter index specifies which of the indices to set
the compare function for

<P>an application specific compare function can be used in order to
implement special orderings of the values of an index, e.g.
because of the use of european "umlauts" in names

<P>the default compare function is the c-library memcmp function
the keycompare function should behave like memcmp

<P></BLOCKQUOTE>
<DL><DT><DT><B>Parameters:</B><DD><B>isamfile</B> -   ISAM file to set function for         
<BR><B>index</B> -   index of key to set function for      
<BR><B>keycompare</B> -   compare function to set               
<BR><B>left</B> -   "left" buffer for compare             
<BR><B>llen</B> -   length of that buffer                 
<BR><B>right</B> -   "right" buffer for compare            
<BR><B>rlen</B> -   length of that buffer                 <BR><DT><B>Returns:</B><DD>  int rc == 0: call went ok
<BR>  int rc != 0: some error occured, see pbl_errno
<BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
